using System;
using System.Collections.Generic;
using System.Text;
using System.Windows.Forms;

namespace Skinner
{
    public class StyleRule
    {
        private List<mshtml.IHTMLStyleSheetRule> _rules = new List<mshtml.IHTMLStyleSheetRule>();

        private StyleSheet _sheet = null;

        public StyleSheet StyleSheet
        {
            get { return _sheet; }
        }

        public List<mshtml.IHTMLStyleSheetRule> Rules
        {
            get { return _rules; }
            set { _rules = value; }
        }

        public mshtml.IHTMLStyleSheetRule Rule
        {
            get { return _rules[0]; }
        }

        internal StyleRule(mshtml.IHTMLStyleSheetRule rule, StyleSheet sheet)
        {
            _rules.Add(rule);
            _sheet = sheet;
        }

        public List<HtmlElement> MatchingElements = new List<HtmlElement>();
    }
}
